package com.chmingx.JavaBasic.lambda;

import java.util.function.Supplier;

public class NaturalSupplier implements Supplier<Integer> {
    private int n = 0;

    @Override
    public Integer get() {
        n++;
        return n;
    }
}
